package com.roomio.notification.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

@Entity
@Table (name="SYS_MAIL_NOTIFICATION")
public class MailNotification  extends Notification {

	@Column (name="TO_USER")
	private String toUser;
	
	@Column (name="FROM_USER")
	private String fromUser;
	
	@Column (name="CC_USER")
	private String ccUsers;
	
	@Column (name="BCC_USER")
	private String bccUsers;
	
	@Column (name="MAIL_SUBJECT")
	private String subject;
	
	@Column (name="MESSAGE_BODY")
	private String message;
	
	@Column (name="IS_SENT", length=1)
	@Type (type="yes_no")
	private Boolean isSent;
	
	@Column (name="SENT_DATE")
	private Date sentDate;
	
	@Column (name="SEND_FAILED", length=1)
	@Type (type="yes_no")
	private Boolean sendFailed;
	
	@Column (name="ERROR_MESSAGE")
	private String errorMessage;
	
	@Column (name="ORDER_ID")
	private Long orderReference;
	
	@Column (name="USER_ID")
	private Long userReference;
	
	@Column (name="SERVICE_ID")
	private Long serviceReference;

	public String getToUser() {
		return toUser;
	}

	public void setToUser(String toUser) {
		this.toUser = toUser;
	}

	public String getFromUser() {
		return fromUser;
	}

	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}

	public String getCcUsers() {
		return ccUsers;
	}

	public void setCcUsers(String ccUsers) {
		this.ccUsers = ccUsers;
	}

	public String getBccUsers() {
		return bccUsers;
	}

	public void setBccUsers(String bccUsers) {
		this.bccUsers = bccUsers;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Boolean getIsSent() {
		return isSent;
	}

	public void setIsSent(Boolean isSent) {
		this.isSent = isSent;
	}

	public Date getSentDate() {
		return sentDate;
	}

	public void setSentDate(Date sentDate) {
		this.sentDate = sentDate;
	}

	public Boolean getSendFailed() {
		return sendFailed;
	}

	public void setSendFailed(Boolean sendFailed) {
		this.sendFailed = sendFailed;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public Long getOrderReference() {
		return orderReference;
	}

	public void setOrderReference(Long orderReference) {
		this.orderReference = orderReference;
	}

	public Long getUserReference() {
		return userReference;
	}

	public void setUserReference(Long userReference) {
		this.userReference = userReference;
	}

	public Long getServiceReference() {
		return serviceReference;
	}

	public void setServiceReference(Long serviceReference) {
		this.serviceReference = serviceReference;
	}
	
	
}
